package cn.shop.utils.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * 提现方式
 *
 * @author jzw
 * @since 2021-12-13 10:58
 */
public enum WithdrawSolution {
	/**
	 * 待付款
	 */
	PAYMENT_ON_BEHALF(1, "银行卡结算"),
	ALIPAY_PAYMENT(2, "支付宝结算"),
	//  code 1 和 2  只用来 结算时做区分 在存库时都是用code : 3
	AUTOMATIC_PAYMENT(3, "自动结算"),
	SELF_HELP(4, "手动结算"),
	SEND_BACK(5, "退回账户");

	WithdrawSolution(int code, String description) {
		this.code = code;
		this.description = description;
	}

	@EnumValue
	private final int code;

	@JsonValue
	private final String description;

	public int getCode() {
		return code;
	}

	public String getDescription() {
		return description;
	}
}
